package com.scs.application.modules.fsd.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.scs.application.core.entity.BaseEntity;
import java.io.Serializable;

import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜-温湿度表")
@TableName("fsd_temp")
public class FsdTemp extends BaseEntity implements Serializable  {

    @EntityFieldAnnotation(
            type = EntityFieldType.LONG
    )
    @TableId(type = IdType.ID_WORKER_STR)
    public String id;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @JSONField(deserialize = false)
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    public LocalDateTime gmtCreate;

    @EntityFieldAnnotation(
            text = "库位",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String stationCode;

    @EntityFieldAnnotation(
            text = "节点",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private int chestNo;

    @EntityFieldAnnotation(
            text = "温度",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String temp;

    @EntityFieldAnnotation(
            text = "潮湿度",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String damp;

    @EntityFieldAnnotation(
            text = "是否报警",
            length = "",
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private Integer alert;

    @EntityFieldAnnotation(
            text = "上传时间",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date recTime;

    @EntityFieldAnnotation(
            text = "地址",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Integer deviceid;

    @EntityFieldAnnotation(
            text = "数据类型，实时、以存储",
            length = "10",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String datatype;
}
